﻿#Include ..\builtin\exec.ahk
#Include ..\baseHandle.ahk

class WebSearch extends BaseHandle {

  static Handle(parsed) {
    kw := Array(parsed.target, parsed.extra*).Join('%20')
    Exec.Handle({ target: 'run https://cn.bing.com/search?q=' kw })
    return this.Succ('ok', 'x')
  }

  static Echo() => '
  (
    q 浏览器搜索
    q <target>
  )'

}
